package com.qinglei.recoup.system.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(description = "获取床位事件参数对象")
@Data
public class BedEventParam implements Serializable {

    @ApiModelProperty("床位ID")
    @NotNull(message = "{required}")
    private Integer bedId;

    @ApiModelProperty("上一条信息ID，不传或者传0获取最新信息")
    private Long lastId = 0L;

    @ApiModelProperty("获取信息数量，默认10条")
    private Integer size = 10;
}
